//
//  NSString+Extend.h
//  LLPayDemo
//
//  Created by lxj on 17/3/28.
//  Copyright © 2017年 lxj. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface NSString (Extend)

- (CGSize)stringSizeWithFontSize:(CGFloat)fontSize;


/**
 *32位md5加密算法

 @param str 加密字符串
 @return 得到md5 加密的字符串
 */
//- (NSString *)md5:(NSString *)str;


-(BOOL)isPhone;

- (CGSize)stringSizeWithMaxSize:(CGSize)maxSize FontSize:(CGFloat)fontSize;

-(BOOL)IsRealName;

-(BOOL)ISvalidateIdentityCard;


//时间戳--->时间
+(NSString *)transToTime:(NSString *)timsp withFormat:(NSString *)format;
@end
